package so.book;

import ivan.bookKeeper.R;
import so.GeneralSystemOperation;
import android.content.Context;
import android.database.Cursor;
import domain.Book;

public class ReturnAllBooks extends GeneralSystemOperation {

	public ReturnAllBooks(Context context) {
		super(context);
	}

	@Override
	protected Object doInBackground(Object... params) {
		Book book = (Book) params[0];
		Cursor cursor = dbHandler.fetchAll(book);
		toastMessage = context.getString(R.string.toastMessage_success_return)
				+ context.getString(R.string.book_multitple_text);
		return cursor;
	}
}
